<template>
  <div class="exception-container">
    <div class="exception-content">
      <img src="/assets/403.svg" alt="403" class="exception-image" />
      <h1 class="exception-title">403</h1>
      <p class="exception-desc">抱歉，您没有权限访问该页面</p>
      <a-button type="primary" @click="goBack">返回上一页</a-button>
      <a-button type="text" @click="goHome">返回首页</a-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.back()
}

const goHome = () => {
  router.push('/dashboard/workbench')
}
</script>

<style lang="less" scoped>
.exception-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f7fa;
}

.exception-content {
  text-align: center;
  padding: 48px;
  
  .exception-image {
    width: 240px;
    margin-bottom: 24px;
  }
  
  .exception-title {
    font-size: 72px;
    font-weight: 600;
    color: #1d2129;
    margin: 24px 0 16px;
  }
  
  .exception-desc {
    font-size: 20px;
    color: #4e5969;
    margin-bottom: 24px;
  }
  
  .arco-btn {
    margin: 0 8px;
  }
}
</style> 